package cn.tedu.management.portal.vo;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class StaffUpdateVO implements Serializable {
    private Integer id;
    @NotNull(message = "用户名不能为空")
    @Size(min = 2,max = 8,message = "用户名必须为2~8位")
    private String username;
    @NotNull(message = "手机号不能为空")
    @Size(min = 11,max = 11,message = "手机号必须为11位")
    private String phone;
    @NotNull(message = "邮箱不能为空")
    private String email;
    @NotNull(message = "性别不能为空")
    private String gender;//性别
    private Integer deptId;
    @NotNull(message = "部门不能为空")
    private String department;
    private Integer jobId;
    @NotNull(message = "职位不能为空")
    private String job;

}
